package com.kk.factory.factorymethod;

/**
 * pizza
 *
 * @author 王志强
 * @date 2021-12-10
 */
abstract class AbstractPizza {

    protected String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 准备原料
     */
    public abstract void prepare();

    public void make() {
        System.out.println(name + " 制作完成！！");
    }


}
